<?php
    $username = $this->formText('username',isset($this->postData['username']) ? $this->postData['username'] : '',array());
    $password = $this->formPassword('password','',array());
    $password2 = $this->formPassword('password2','',array());
    $email = $this->formText("email",isset($this->postData["email"]) ? $this->postData["email"] : "", array());
    $btnButton 	= $this->formSubmit('submit','Lưu', array('class'=>'button'));
    $btnButtonCancel 	= $this->formSubmit('cancel',$this->translate('Cancel'));
?>
<div class="deal">	
	<div class="deal_content_top"></div>
	<div class="deal_content">
    <form id="login-form" action="<?php echo $this->url(array("module"=>"admin_user","controller"=>"account","action"=>"addpost")) ?>" method="post">
        <?php foreach($this->errors as $error):?>
        <div class="message"><?php echo $error ?></div>
        <?php endforeach; ?>
        <table style="width: 100%">
            <tr>
                <td style="width: 20%">Nhóm</td>
                <td>
                    <select name="group_id">
                        <?php foreach($this->groups as $group): ?>
                            <option value="<?php echo $group->group_id ?>"><?php echo $group->group_name ?></option>
                        <?php endforeach ?>
                    </select>
                </td>
            </tr>
            <tr>
                <td style="width: 20%">Tên đăng nhập</td>
                <td><?php echo $username ?></td>
            </tr>
            <tr>
                <td style="width: 20%">Mật khẩu</td>
                <td><?php echo $password ?></td>
            </tr>
            <tr>
                <td style="width: 20%">Xác nhận</td>
                <td><?php echo $password2 ?></td>
            </tr>
            <tr>
                <td style="width: 20%"><?php echo $this->translate("Email") ?></td>
                <td><?php echo $email ?></td>
            </tr>
            <tr>
                <td style="width: 20%">&nbsp;</td>
                <td><?php echo $btnButton ?></td>
            </tr>
        </table>
    </form>
</div>
<div class="deal_content_bottom"></div>
</div>
